﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Contact.aspx.cs" Inherits="Framework.Contact" %>

<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <script src="https://maps.googleapis.com/maps/api/js"></script>
    <script type="text/javascript">
        function initialize() {
            var mapCanvas = document.getElementById('map');
            var myLatlng = new google.maps.LatLng(10.77732, 106.68875);
            var mapOptions = {
                zoom: 19,
                center: myLatlng,
                mapTypeId: google.maps.MapTypeId.ROADMAP
            }
            var map = new google.maps.Map(mapCanvas, mapOptions);

            // Place a draggable marker on the map
            var marker = new google.maps.Marker({
                position: myLatlng,
                map: map,
                draggable: true,
                title: "3W Compnay, 6th Floor. OIIC Building, 248-250 Nguyen Dinh Chieu, Ward 6, Dist 3, Ho Chi Minh City",
                icon: "Images/profilefbmin.jpg"
            });
        }
        google.maps.event.addDomListener(window, 'load', initialize);
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <div class="main-slider">
            <img src="/Images/contactus.jpg" style="height: 120px;" />
            </div>            

                    <div style="width: 100%"><asp:Label ForeColor="Green" ID="lblAlertContact" runat="server"></asp:Label></div>          

     <div class="home-content">
                <div class="blog">
                                        <div class="control-group">
                                         <label for="<%= txtName.ClientID %>"> <%= DGSFramework.Globals.GetLanguage("Họ tên/Công ty", "Name/Company", true) %><span>(*)</span></label>
                                <asp:TextBox ID="txtName" runat="server" CssClass="span6" placeholder=''></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtName"
                                    CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>

                                        </div>
                            <div class="control-group">
                                <label for="<%= txtAddress.ClientID %>">
                                    <%= DGSFramework.Globals.GetLanguage("Địa chỉ", "Address", true) %><span>(*)</span>
                                </label>
                                <asp:TextBox ID="txtAddress" runat="server" CssClass="span6" placeholder=''></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtAddress"
                                    CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                           </div>
                             <div class="control-group">
                                <label for="<%= txtPhone.ClientID %>">
                                    <%= DGSFramework.Globals.GetLanguage("Điện thoại", "Phone", true) %><span>(*)</span>
                                </label>
                                <asp:TextBox ID="txtPhone" runat="server" CssClass="span6" placeholder=''></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtPhone"
                                    CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                           </div>
                           <div class="control-group">
                                <label for="<%= txtEmail.ClientID %>">
                                    Email<span>(*)</span>
                                </label>
                                <asp:TextBox ID="txtEmail" runat="server" CssClass="span6" placeholder=''></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtEmail"
                                    CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"
                                    Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                    ValidationGroup="contact" runat="server" ControlToValidate="txtEmail" ErrorMessage="*"
                                    CssClass="help-inline" Display="Dynamic"></asp:RegularExpressionValidator>
                           </div>
                            <div class="control-group">
                                <label for="<%= txtTitle.ClientID %>">
                                    <%= DGSFramework.Globals.GetLanguage("Chủ đề", "Title", true) %><span>(*)</span>
                                </label>
                                <asp:TextBox ID="txtTitle" runat="server" CssClass="span6" placeholder=''></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="txtTitle"
                                    CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                            </div>
                           <div class="control-group">
                                <label for="<%= txtContent.ClientID %>">
                                    <%= DGSFramework.Globals.GetLanguage("Nội dung", "Message", true)%><span>(*)</span>
                                </label>
                                <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" placeholder=''></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="txtContent" Display="Dynamic"
                                    CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator Display="Dynamic" ControlToValidate="txtContent"
                                    ValidationGroup="contact" ID="RegularExpressionValidator2" CssClass="help-inline mcinput yes"
                                    ValidationExpression="^[\s\S]{20,}$" runat="server" ErrorMessage="*"></asp:RegularExpressionValidator>
                            </div>
                           <%-- <div class="control-group">
                                <div class="controls" style="float: left; text-align: left;">
                                    <div runat="server" id="pbTarget" visible="false">
                                    </div>
                                    <recaptcha:RecaptchaControl ID="recaptcha" runat="server" PublicKey="6LdWxwATAAAAAB0g8EtthU2czCHZ38LD9Dp7K_7N"
                                        PrivateKey="6LdWxwATAAAAAMCbkZKdJn9cn7W2N0FnZuyP50zZ" />
                                    <span id="lblCaptchaMessage" runat="server" class="help-inline" style="color: Red;">
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>--%>
                                        <div class="control-group">
                                <asp:Button ID="btnSend" runat="server" CssClass="button green" ValidationGroup="contact" OnClick="btnSend_Click" style="width: 100px;" />
                                <asp:Button ID="btnReset" runat="server" CssClass="button grey" OnClick="btnReset_Click" style="width: 100px; margin-left: 10px;" />

                                        </div>
                        </div>
            
        </div>

    <div class="container-out">
        <div class="bottom-contact" style="overflow: hidden; clear:both">
                            <div id="map" style="width: 100%; height: 435px;">

            </div>
             <div class="info-com">
                        <ul style="margin-left: 0; padding-left: 0">
                            <li><strong>Công ty cổ phần thương mại đào tạo và phân phối LNK</strong></li>
                            <li><img src="Images/locationicon.png" style="width: 15px" /> Tầng 6, Tòa Nhà OIIC, 248-250 Nguyển Đình Chiểu, Phường 6, Quận 3,<br />
                                Hồ Chí Minh City, Việt Nam</li>
                            <li><img src="Images/phoneicon.png" style="width: 15px" /> 08.66799090 </li>
                            <li><img src="Images/emailicon.png" style="width: 15px" /> info@sinhtrac.vn </li>
                            <li><img src="Images/webicon.png" style="width: 15px" /> www.sinhtrac.vn</li>
                        </ul>
                    </div>

            </div>
    </div>

</asp:Content>
